import network from '@/common/network.js'

//视频标签
export const gpTagList = param => network({
  url:'/gp-boot/gp/api/gpTag/list',
  param
})
//视频管理
export const gpVideoList = param=> network({
  url:'/gp-boot/gp/api/gpVideo/list',
  param
})
//视频点赞
export const addUserVideoOperateTimes = param =>
  network({
    url:`/gp-boot/gp/api/gpUserVideoOperateTimes/addUserVideoOperateTimes`,
    param,
    auth: true,
    method:'post',
  })

//获取用户视频点赞
export const gpUserVideoOperateTimes = (params = {}) =>network({
  url:`/gp-boot/gp/api/gpUserVideoOperateTimes/getUserVideoOperateTimes`

})

//用户视频操作次数-取消点赞
export const gpcancelUserVideoDZ = (param = {}) =>network({
  url:`/gp-boot/gp/api/gpUserVideoOperateTimes/cancelUserVideoDZ`,
  param,
  auth: true,
  method:'post',

})
//获取视频总操作次数
export const getVideoOperateTimes = (params = {}) =>network({
  url:`/gp-boot/gp/api/gpUserVideoOperateTimes/getVideoOperateTimes`

})

//获取用户app访问量
export const gpVisitsAppVisit = (data = {}) =>network({
  url:`/gp-boot/gp/api/gpVisits/appVisit`,
  data,
  method:'post',
  auth: true,
})

